package org.wang.gift.clients;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.wang.gift.util.AjaxResult;

@FeignClient(value = "GIFT-USER-SERVER",fallbackFactory = UserClientFallbackFactory.class)
public interface UserClient {

    //获取用户
    @GetMapping("/user/loginUser/{loginId}")
    public AjaxResult getByLoginId(@PathVariable("loginId")Long loginId);
}